package com.dawn.gameNow.db;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class DBConnection {
	public Connection connect(String dbURL, String userName, String password) {

		Connection dbConn = null;
		try {
			Class.forName("net.sourceforge.jtds.jdbc.Driver");
			dbConn = DriverManager.getConnection(dbURL, userName, password);
		} catch (SQLException e) {
			e.printStackTrace();
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		}

		return dbConn;
	}
}
